﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MaxLeaf.Commons
{
    public class Const
    {
        public const string EXCEPTION_MESSAGE_NO_DATA = "数据不存在";
        public const string EXCEPTION_MESSAGE_INVALID_ACCESSMODE_CONFIG = "'AccessMode' 设置错误";

        public const string EXCEPTION_MESSAGE_INVALID_COMMANDNAME = "cmd {0} 不存在";

        public const string EXCEPTION_WCF_NOTREACHABLE = "WCF 不能访问";


        public const string WCF_ADD_CONNECTED_SERVICE = "addConnectedService";
        public const string WCF_REMOVE_CONNECTED_SERVICE = "removeConnectedService";
        public const string WCF_UPDATE_CONNECTED_SERVICE = "updateConnectedService";
        public const string WCF_ADD_HOSTED_SERVICE = "addHostedService";
        public const string WCF_REMOVE_HOSTED_SERVICE = "removeHostedService";
        public const string WCF_UPDATE_HOSTED_SERVICE = "updateHostedService";
        public const string WCF_INIT_ALL_CONNECTED_INSTANCES = "initAllConnectedInstances";

        /// <summary>
        /// 基础资料数据库（读多写少）MaxleafSCPBase
        /// </summary>
        public const string DB_SCPBase = "MaxleafSCPBase";
        /// <summary>
        /// 用户文件服务器（XML文件库）MaxleafSCPCustFile
        /// </summary>
        public const string DB_SCPCustFile = "MaxleafSCPCustFile";
        /// <summary>
        /// 用于控制FitemID的全局唯一标识数据库 MaxleafSCPFinterID
        /// </summary>
        public const string DB_SCPFinterID = "MaxleafSCPFinterID";
        /// <summary>
        /// 商品数据库（商品信息数据库）MaxleafSCPItem
        /// </summary>
        public const string DB_SCPItem = "MaxleafSCPItem";
        /// <summary>
        /// 当期单据数据库（当期单据数据库）MaxleafSCPSEOrder
        /// </summary>
        public const string DB_SCPSEOrder = "MaxleafSCPSEOrder";
        /// <summary>
        /// 历史单据数据库 MaxleafSCPSEOrderHist
        /// </summary>
        public const string DB_SCPSEOrderHist = "MaxleafSCPSEOrderHist";

        public const int RETRY_CYCLES=1;

        public const int BAD_REQUEST_LIMIT = 1;

    }
}
